const apiConf = {
    server: 'http://127.0.0.1:5000',
    token_prefix: 'Bearer ',

    user: {
        login(username, password) {
            return {
                method: "post",
                url: "/login",
                data: {
                    user: username,
                    password: password,
                }
            }
        },
        getInfo() {
            return {
                method: 'get',
                url: '/getInfo'
            }
        }
    }
}

module.exports = apiConf
